export default {
    state: () => ({
        cart:[{proName: "苹果", proPrice: 4}, {proName: "西瓜", proPrice: 24}, {
            proName: "葡萄",
            proPrice: 44
        }, {proName: "橘子", proPrice: 54},],
    }),
    getters: {

    },
    mutations: {
        goUP(state,n){
            state.cart.forEach(pro=>{
                pro.proPrice+=n;
            })
        },
    },
    action: {},
}